package joonany.basic.j04;

import java.util.Scanner;

public class J04_CardCheck {

	public static void main(String[] args) {
		
		Scanner sc = new Scanner(System.in);
		
		int cardNum;
		
		System.out.print("카드 숫자 6자리를 입력하세요 : ");
		cardNum = sc.nextInt();
		
		sc.close();		
		
		
		if(cardNum / 10000 == 35){
			switch(cardNum % 350000){
				case 6317 : System.out.println("JCB카드, 356317 - NH 농협카드");
				break;
				case 6901 : System.out.println("JCB카드, 356901 - 신한카드");
				break;
				case 6912 : System.out.println("JCB카드, 356912 - KB국민카드");
				break;
				default : System.out.println("JBC카드");
		}}else if(cardNum / 100000 == 4){
			switch(cardNum % 400000){                         
				case 4825 : System.out.println("VISA카드, 404825 - 비씨카드");
				break;
				case 38676 : System.out.println("VISA카드, 438676 - 신한카드");
				break;
				case 57973 : System.out.println("VISA카드, 457973 - 국민은행");
				break;
				default : System.out.println("VISA카드");
				}
		}else if(cardNum / 100000 == 5){
			switch(cardNum % 500000){
				case 15594 : System.out.println("Maestro카드, 515594 - 신한카드");
				break;
				case 24353 : System.out.println("Maestro카드, 524353 - 외환카드");
				break;
				case 40926 : System.out.println("Maestro카드, 540926 - 국민은행");
				break;
				default : System.out.println("Maestro카드");
			}
		}else System.out.println("해당 카드의 정보가 없습니다.");
		}
		
		
		
		
		
		
		
		
		

		

}


